<?php

namespace app\company\controller;

use app\common\controller\CompanyController;
use app\common\service\annotation\ControllerAnnotation;
use app\common\traits\LoginTrait;
use app\common\validate\LoginValidate;
use app\company\model\CompanyUser;

/**
 * @ControllerAnnotation(title="登录")
 */
class Login extends CompanyController
{
    // 是否忽略验证登录(验证器中使用，类反射对象获取该属性)
    protected bool $ignoreAuth = true;

    use LoginTrait;

    public function initialize(): void
    {
        parent::initialize();
        $this->validateClass = LoginValidate::class;
        $this->model         = new CompanyUser();
    }
}